<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
	<form
		action="
        <c:choose>
    <c:when test="${sessionScope.gopay_webtest_URL_Name=='自定义'}">
    ${sessionScope.gopay_webtest_URL.dom}
    </c:when>
    <c:otherwise>
		${sessionScope.gopay_webtest_URL.dom}${sessionScope.gopay_webtest_URL.goodsreturn}
		    </c:otherwise>
    </c:choose>"
		name="returnfunc" id="returnfunc" method="POST">
		<input type="hidden" value="${goodsinfo.verficationCode}"
			name="VerficationCode" id="VerficationCode"> <input
			type="hidden" value="${goodsinfo.signValue}" name="signValue"
			id="signValue"> <input type="hidden" id="tranCode"
			name="tranCode" value="${goodsinfo.tranCode }" size="50" /> <input
			type="hidden" id="merchantID" name="merchantID"
			value="${goodsinfo.merchantID }" size="50" /> <input type="hidden"
			id="merOrderNum" name="merOrderNum" value="${goodsinfo.merOrderNum }"
			size="50" /> <input type="hidden" id="tranDateTime"
			name="tranDateTime" value="${goodsinfo.tranDateTime }" size="50" />

		<input type="hidden" id="tranAmt" name="tranAmt"
			value="${goodsinfo.tranAmt }" size="50" /> <input type="hidden"
			id="orgtranDateTime" name="orgtranDateTime"
			value="${goodsinfo.orgtranDateTime }" size="50" /> <input
			type="hidden" id="orgOrderNum" name="orgOrderNum"
			value="${goodsinfo.orgOrderNum }" size="50" /> <input type="hidden"
			id="orgtranAmt" name="orgtranAmt" value="${goodsinfo.orgtranAmt }"
			size="50" /> <input type="hidden" id="merURL" name="merURL"
			value="${goodsinfo.merURL }" size="50" /> <input type="hidden"
			id="tranIP" name="tranIP" value="${goodsinfo.tranIP }" size="50" />
		<input type="hidden" id="msgExt" name="msgExt"
			value="${goodsinfo.msgExt }" size="50" /> <input type="hidden"
			id="merchantEncode" name="merchantEncode"
			value="${goodsinfo.merchantEncode }" size="50" />
	</form>
	<script>
<%-- 为了防止用户登录后点击提交后退到登录页面，对document.returnfunc.submit()增加判断条件if(0==history.length) --%>

if($.browser.msie) {
	if(0==history.length)document.returnfunc.submit();
}else if($.browser.mozilla){
	if(1==history.length)document.returnfunc.submit();
}else if($.browser.opera) {
	if(1==history.length)document.returnfunc.submit();
}else{//for webkit(Safari, Chrome...)
	if(1==history.length)document.returnfunc.submit();
} 
</script> 
